package com.earnings.okhttputils.utils.OkHttp.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/3/20 0020.
 */

public class ToastUtils {
    private static boolean debug = true;

    public static void showToast(Context context, String msg) {
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }
    public static void showToast(Context context, int msg) {
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }
    public static void showToast(Context context, boolean msg) {
        Toast.makeText(context, msg+"", Toast.LENGTH_SHORT).show();
    }

    public static void showBugToast(Context context, String msg) {
        if (debug) {
            Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
        }
    }

    public static void showBugToast(Context context, boolean msg) {
        if (debug) {
            Toast.makeText(context, msg + "", Toast.LENGTH_SHORT).show();
        }
    }

    public static void showBugToast(Context context, int msg) {
        if (debug) {
            Toast.makeText(context, msg + "", Toast.LENGTH_SHORT).show();
        }
    }

}
